const path = require('path'); // 路径模块
const utilsRoot = path.join(__dirname, '..', '..','..', 'utils/modules');
const docsRoot = path.join(__dirname,'..', '..');
const readFile = require('./readFile');

const pluginElErp = readFile(docsRoot + '/sksPluginElErp');

const navbar=[
  {
    text: 'elErp扩展',
    activeMatch: `^/sksPluginElErp/`,
    link: '/sksPluginElErp/10.介绍/01.translation'
  },
]

const themeConfig = {
  editLinks: true,
  smoothScroll: true,
  activeHeaderLinks: true,
  lastUpdated: '最后更新时间',
  //navbar 参数在 vuepress 2.x 版本才有,而且需要node12以上才行,所以暂时放弃该功能
  // navbar: navbar,
  nav: navbar,

  sidebar: {
    '/sksPluginElErp/': pluginElErp,
  },
};

module.exports = themeConfig;
